<?php defined('RUN_KATANA') or die('Restricted access'); ?>
<?php 
if(is_object($adc->CurrentAd))
{
	if(is_array($adc->CurrentAd->getFiles()))
	{
		echo '<div class="prospect-files">';
		echo '<h3>'.ucfirst($txt->getWord('documents').' '.$txt->getWord('and').' '.$txt->getWord('brochures')).'</h3>';
		foreach($adc->CurrentAd->getFiles() as $file)
		{
			if($file->getId() > 0)
			{
				?>
               	<p><a target="_blank" href="<?php echo ADFILE_URL.$file->getFilename(); ?>"><?php echo $file->getIcon(22); ?> <?php echo $file->getTitle(); ?></a></p>
                <?php
			}
		}
        echo '</div><div class="clear"></div><hr /><br />';
	}
}
?>
